package net.csdn.business.kanban.common.domain.request;

import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName KanbanView
 * @Description TODO
 * @Author liuzhisheng
 * @Date 2023/9/13
 **/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class KanbanUpdateViewParam implements Serializable {

    @NotNull
    @Schema(name = "id", description = "看板视图ID")
    private Long id;

    @Schema(name = "view_name", description = "视图名称")
    private String viewName;

    @Schema(name = "filter_obj", description = "过滤条件{filter:测试,desc:5645633,group:2241244}")
    private JSONObject filterObj;

    @Schema(name = "field_display_json", description = "字段是否展示JSON（包含所有字段）[{Title:false},{24231:true}...]")
    private JSONArray fieldDisplayJson;

    @Schema(name = "view_type",description = "view类型：1:table 2:board 3:roadmap")
    private Integer viewType;
}
